<template>
  <div>
    <el-button @click="open">打开Dialog</el-button>

    <dialogTest :win="win"></dialogTest>
  </div>
</template>

<script setup>
import dialogTest from './dialogs/dialogTest.vue'
// 弹窗1
const win = reactive({
  visible: false,
  title: '新增科目',
  submitText: '保存',
})

const open = () => {
  win.visible = true
}
</script>

<style scoped></style>
